<?php
require("../inc/common.inc.php");
require("Admin_ChkPurview.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HTML><HEAD>
<LINK href="images/style.css" rel=stylesheet type=text/css>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</HEAD>
<BODY>
<div id="tips">
	<div class="l fl">您好，欢迎访问微信一佳管理平台！</div>
	<div class="r fr">
		<h1>您的权限：超级管理员</h1>
		<ul>
		<?php if ($Purview==1 || strpos($OtherPurview,'sucai_')){?>
		<li><a href="sucai/sucai_left.php" target="left">[素材管理]</a></li>
		<?php }?>
		<li><a href="Admin_chpass.php" target="main">[修改密码]</a></li>
		<?php if ($Purview==1 || strpos($OtherPurview,'sys_adminuser')){?>
		<li><a href="sys/sys_member.php" target="main">[分配用户]</a></li>
		<?php }?>
		<li><a href="help/help_left.php" target="main">[帮助中心]</a></li><li><a href="logout.php" target="main">[退出登录]</a></li></ul>
		<div class="clear"></div>
	</div>
<div class="clear"></div>
</div>
<div id="top">
	<div class="l fl"><a href="#"><img src="images/logo.png" alt="微信一佳管理平台" /></a></div>
	<div class="r fr">
		<ul>
			<li><a href="mx_left.php" target="left" class="cur1" onclick="fun_tab('tab',1,7);window.parent.window.frames['main'].location.href='sysadmin_view.php'" id="tab1">系统首页</a></li>
			<?php if ($Purview==1 || strpos($OtherPurview,'user_')){?>
			<li class="line"></li>
			<li><a href="user/user_left.php" target="left" class="n2" onclick="fun_tab('tab',2,7)" id="tab2">用户管理</a></li>
			<?php
			 }
			 if ($Purview==1 || strpos($OtherPurview,'tuisong_')){
			?>
			<li class="line"></li>
			<li><a href="tuisong/tuisong_left.php" target="left" class="n3" onclick="fun_tab('tab',3,7)" id="tab3">信息推送</a></li>
			<?php
			 }
			 if ($Purview==1 || strpos($OtherPurview,'yingxiao_')){
			?>
			<li class="line"></li>
			<li><a href="yingxiao/yx_left.php" target="left" class="n4" onclick="fun_tab('tab',4,7)" id="tab4">营销阵营</a></li>
			<?php
			 }
			 if ($Purview==1 || strpos($OtherPurview,'tongji_')){
			?>
			<li class="line"></li>
			<li><a href="tongji/tj_left.php" target="left" class="n5" onclick="fun_tab('tab',5,7)" id="tab5">数据统计</a></li>
			<?php
			 }
			 if ($Purview==1 || strpos($OtherPurview,'dianhua_')){
			?>
			<li class="line"></li>
			<li><a href="dianhua/dh_huoqu.php" target="main" class="n6" id="tab6">电话短信</a></li>
			<?php
			 }
			 if ($Purview==1 || strpos($OtherPurview,'sys_')){
			?>
			<li class="line"></li>
			<li><a href="sys/sys_left.php" target="left" class="n7" onclick="fun_tab('tab',7,7)" id="tab7">管理中心</a></li>
			<?php
			}?>
		</ul>
	</div>
	<div class="clear"></div>
</div>
<div id="status">
	<div class="s1 fl">今天是：
	<?php
	$today = date("Y-m-d");  
	echo date("Y-m-d")."&nbsp;";
	$w=date("w");
	switch($w){
	    case 1;
		    echo "星期一";
			break;
	    case 2;
		    echo "星期二";
			break;
	    case 3;
		    echo "星期三";
			break;
	    case 4;
		    echo "星期四";
			break;
	    case 5;
		    echo "星期五";
			break;
	    case 6;
		    echo "星期六";
			break;
	    case 0;
		    echo "星期日";
			break;
	}
	?>
	</div>
	<div class="s2 fl"></div>
	<div class="s3 fl" style="display:none;">
	  <form id="form1" name="form1" method="post" action="">
	    <input type="text" name="textfield" class="i1 fl" /><input type="image" name="imageField" src="images/status_5.png" class="i2 fr"/>
	  </form>
    </div>
	<div class="s4 fr">当前位置：管理平台 - 首页</div>
	<div class="clear"></div>
</div>
<script>
function fun_tab(modtag,modk,modknum)
{
    for(i=1; i <=modknum; i++)
    {
        if (i==modk)
        {
        	document.getElementById(modtag+i).className="cur"+i;
        }
        else
        {
        	document.getElementById(modtag+i).className="n"+i;
        }
    }
}
</script>
</BODY>
</HTML>